<h2>Setting</h2>
<div class="content-inner">
	<!--a href="<?=site_url(array('c' => 'cms_settings', 'm' => 'add'))?>" title="Add Item">
		<img src="<?=$image_path?>function/add.gif" width="106" height="31" border="0">
	</a-->
	<table width="100%" border="0" cellpadding="0" cellspacing="0" class="cont-table-list">
		<thead>
			<tr>
				<th class="small">Edit</th>
				<th align="left">Name</th>
				<th align="left">Value</th>
			</tr>
		</thead>
		<tbody>
		<?php if(!empty($setting)):?>
		<?php $item = $setting['site_information']?>
			<tr class="odd">
				<td class="small">
					<a href="<?=site_url(array('c' => 'cms_settings', 'm'=>'edit', 'alias' => 'site_information'))?>">
						<img src="<?=$image_path?>icons/edit.gif" width="30" height="30" border="0"></a>
				</td>
				<td>Site Information</td>
				<td><?=$item?></td>
			</tr>
		<?php $item = $setting['layout']?>
			<tr class="odd">
				<td class="small">
					<a href="<?=site_url(array('c' => 'cms_settings', 'm'=>'edit', 'alias' => 'layout'))?>">
						<img src="<?=$image_path?>icons/edit.gif" width="30" height="30" border="0"></a>
				</td>
				<td>Layout</td>
				<td><?=$item?></td>
			</tr>
		<?php //$item = $setting['language_support']?>
			<!--<tr>
				<td class="small">
					<a href="<?=site_url(array('c' => 'cms_settings', 'm'=>'edit_lang'))?>">
						<img src="<?=$image_path?>icons/edit.gif" width="30" height="30" border="0"></a>
				</td>
				<td>Languages Support</td>
				<td><?php //print_r(unserialize($item))?></td>
			</tr>-->
		<?php $item = $setting['enable_offline']?>
			<tr class="odd">
				<td class="small">
					<a href="<?=site_url(array('c' => 'cms_settings', 'm'=>'edit', 'alias' => 'enable_offline'))?>">
						<img src="<?=$image_path?>icons/edit.gif" width="30" height="30" border="0"></a>
				</td>
				<td>Enable Offline</td>
				<td><?=$item?></td>
			</tr>
		<?php $item = $setting['sort_date_format']?>
			<tr class="even">
				<td class="small">
					<a href="<?=site_url(array('c' => 'cms_settings', 'm'=>'edit_date_format'))?>">
						<img src="<?=$image_path?>icons/edit.gif" width="30" height="30" border="0"></a>
				</td>
				<td>Date format</td>
				<td>
					Short format: <?=date($setting['sort_date_format'], time())?><br>
					Medium format: <?=date($setting['medium_date_format'], time())?><br>
					Long format: <?=date($setting['long_date_format'], time())?><br>
				</td>
			</tr>
		<?php $item = $setting['image_toolkit']?>
			<tr class="odd">
				<td class="small">
					<a href="<?=site_url(array('c' => 'cms_settings', 'm'=>'edit_image_toolkit'))?>">
						<img src="<?=$image_path?>icons/edit.gif" width="30" height="30" border="0"></a>
				</td>
				<td>Image tookit</td>
				<td><?=ul(unserialize($item), array(
                    'class' => 'listing',
                    'id'    => 'toolkitlist'
                    ))?></td>
			</tr>
		<?php $item = $setting['google_analytic']?>
		<?php $google_analytic = unserialize($item);?>
			<tr class="odd">
				<td class="small">
					<a href="<?=site_url(array('c' => 'cms_settings', 'm'=>'edit_google_analytic'))?>">
						<img src="<?=$image_path?>icons/edit.gif" width="30" height="30" border="0"></a>
				</td>
				<td>Goole Analytic</td>
				<td>
					<div>Enable: <?=$google_analytic['enable']?></div>
					<div>Script: <?=htmlspecialchars($google_analytic['script'])?></div>
				</td>
			</tr>
		<?php endif;?>
		</tbody>
	</table>
</div>